package com.hongyi.serivice;

import com.hongyi.pojo.User;
import com.hongyi.vo.UserVo;

import java.util.List;

/**
 * @Author: hongyi
 * @CreateTime: 2024-10-22
 */


public interface UserService {
    public List<UserVo> findALl() throws Exception;

    public UserVo getById(Long id) throws Exception;

    /**
     * @param user
     */
    public void save(User user) throws Exception;


    /**
     * @param user
     */
    public void update(User user) throws Exception;


    /**
     * @param id
     */
    public void delete(Long id) throws Exception;

    public List<UserVo> findName(String name) throws Exception;


    public List<UserVo> findUser(User user) throws Exception;


}
